import { defineAsyncComponent } from 'vue'
import AsyncLoading from '../components/ui/van-loading/src/index.vue'

export const loadAsyncComponent = (loader) => defineAsyncComponent({
  loader,
  loadingComponent: AsyncLoading,
  delay: 20,
})
